package dup.login.demo.domain;

import dup.login.demo.validator.Phone;

import javax.validation.constraints.NotNull;

public class Test2 {
    @NotNull(message = "用户ID不能为空！")
    private Integer id;
    @NotNull(message = "手机号码不能为空！")
    @Phone(message = "手机号码错误！")
    private String phone;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
}
